| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRGetHotSpotRegion function to get the region occupied by a hot spot.
OSErr QTVRGetHotSpotRegion (
QTVRInstance qtvr,
UInt32 hotSpotID,
RgnHandlehotSpotRegion);
The QTVRGetHotSpotRegion function returns, in the hotSpotRegion parameter, a handle to the region occupied by the hot spot, in the QuickTime VR movie specified by the qtvr parameter, whose ID is specified by the hotSpotID parameter. The region is clipped to the bounds of the movie's graphics world.
You can obtain the regions of all visible hot spots by calling the QTVRGetVisibleHotSpots function and then calling QTVRGetHotSpotRegion for each hot spot ID in the list.
The first time you call QTVRGetHotSpotRegion , a significant amount of memory might need to be allocated. Accordingly, you should always check for Memory Manager errors returned by QTVRGetHotSpotRegion .
Your application is responsible for disposing of the memory occupied by the returned region.
| Previous | Chapter contents | Chapter top | Section top | Next |